<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>悦读客管理页面</title>

<style type="text/css">
<!--
.style1 {
	font-size: xx-large;
	color: #FF0000;
	height: 48px;
	vertical-align: middle;
}

html, body	{ height:100%; }
			body { margin:0; padding:0; overflow:auto; text-align:center; 
			       background-color: #C9E7E6; }   
			#flashContent { display:none; }
#flashContent { display:block; }

-->
</style>
<link rel="stylesheet" rev="stylesheet" href="contentStyle.css" media="screen"/>
<!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="flash/history/history.css" />
<script type="text/javascript" src="flash/history/history.js"></script>
<!-- END Browser History required section -->  

<script type="text/javascript" src="flash/swfobject.js"></script>
<script type="text/javascript">

            <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
            var swfVersionStr = "10.0.0";
            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
            var xiSwfUrlStr = "flash/playerProductInstall.swf";
            var flashvars = {};
            var params = {};
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = "BookReview";
            attributes.name = "BookReview";
            attributes.align = "middle";
            swfobject.embedSWF(
                "flash/BookReview.swf", "flashContent", 
                "100%", "580", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
			swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
<script type="text/javascript">
<%--for bbs --%>
function setbg_p(e, color, reminder)
{

	e.style.background=color;
	if (e.value == "")
	{
		e.value = reminder;
		e.onfocus = function(){clear_input_p(e, '#e5fff3')};
	}
return true;
}


function setbg(id, color, reminder)
{

	document.getElementById(id).style.background=color;
	if (document.getElementById(id).value == "")
	{
		document.getElementById(id).value = reminder;
		document.getElementById(id).onfocus = function(){clear_input(id, '#e5fff3')};
	}
return true;
}

function clear_form(form_id)
{ 
	form = document.getElementById(form_id);
    for (i=0; i<form.length; i++)
    {
        if (form.elements[i].type == "text" || form.elements[i].type == "textarea"
            || form.elements[i].type =="password")
        {
        	form.elements[i].value = "";
        }
    }
}


function clear_input_p(e, color) 
{ 
    e.value = ""; 
    e.style.background=color;
    e.onfocus = null; 
} 

function clear_input(id, color) 
{ 
    document.getElementById(id).value = ""; 
    document.getElementById(id).style.background=color;
    document.getElementById(id).onfocus = null; 
} 

function check_input_p(e, color) 
{ 
    if(e.value == "")
    {
    	e.onfocus = function(){clear_input_p(e, '#e5fff3')};
    } 
    else
    {
        e.onfocus = null; 
    }
    
} 

function check_input(id, color) 
{ 
    if(document.getElementById(id).value == "")
    {
    	document.getElementById(id).onfocus = function(){clear_input(id, '#e5fff3')};
    } 
    else
    {
        document.getElementById(id).onfocus = null; 
    }
    
} 

<%-- Check all the CheckBox of a form --%>
function checkAll(form_p, checkbox_name, control_p){

	var checkValue = control_p.checked;
	for (j=0; j< form_p.length; j++)
	{
		if (form_p.elements[j].name == (checkbox_name))
		{
			form_p.elements[j].checked = checkValue;
		}
	}
}

function showUploadedPic(value, divId)
{
	document.getElementById(divId).innerHTML="<img width='40px' height='40px'  src='" + value +"'/>";
}

function btn_click(imgCountId, uploadDivId, fileNamePrefix){
	  var fileNo=Number(document.getElementById(imgCountId).value)+1;
	  newDiv=document.createElement("div")
	  newDiv.id="divFile"+fileNo;
	  newDiv.style.height="40px";
	  newDiv.style.align="right";
	  document.getElementById(uploadDivId).appendChild(newDiv)
	  document.getElementById(imgCountId).value=fileNo;
	  newDiv.innerHTML="<div id='" + fileNamePrefix + fileNo 
	  	+ "' style='float:left; height:40px;'></div><input type='file' name='"
	  	+ fileNamePrefix+fileNo+ "' onchange='showUploadedPic(this.value,this.name)';/>";
	 }
</script>
</head>



<body>
<!--
<div align="center" class="page_title">
 编辑书评
</div>
-->
<div>


<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough 
			 JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
			 when JavaScript is disabled.
		-->
        <div id="flashContent">
        	<p>
	        	To view this page ensure that Adobe Flash Player version 
				10.0.0 or greater is installed. 
			</p>
			<script type="text/javascript"> 
				var pageHost = ((document.location.protocol == "https:") ? "https://" :	"http://"); 
				document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" 
								+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); 
			</script> 
        </div>
	   	
       	<noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="580" id="BookReview">
                <param name="movie" value="flash/BookReview.swf"/>
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="flash/BookReview.swf" width="100%" height="580">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="true" />
                <!--<![endif]-->
                <!--[if gte IE 6]>-->
                	<p> 
                		Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.0.0 or greater is not installed.
                	</p>
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
	    </noscript>	
</div>


<!-- body bottom -->
<%@ include file="/WEB-INF/jsp/common_include_bottom.jsp"%>